<template>
  <div id="app">
    <Header></Header>
    <div class="router-view">
      <div class="router-item">
        <router-view />
      </div>
    </div>
  </div>
</template>
<script>
import Header from "./components/header.vue";
export default {
  components: { Header },
};
</script>

<style lang="scss">
html,
body {
  margin: 0;
  height: 100%;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  overflow-y: hidden;
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  width: 100%;
  height: 100%;
  background-color: #f7f8fa;
  display: flex;
  flex-direction: column;
}
.router-view {
  flex: 1;
  position: relative;
  .router-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
  }
}
</style>
